package com.example.service;


import com.example.databean.LoginParam;
import com.example.databean.UserParam;
import com.example.vo.UserAccess;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface UserInfoService {

    /**
     * 登录
     * @param loginParam
     * @return
     */
    UserAccess login(LoginParam loginParam);

    /**
     * 注册
     * @param userParam
     * @return
     */
    boolean register(UserParam userParam);

    /**
     * 根据userId或phone或Email查询用户信息
     * @param checkUser
     * @return
     */
    UserAccess getUserInfoByUserIdOrPhone(String checkUser);

    /**
     * 根据userId查询用户信息
     * @param userId
     * @return
     */
    UserAccess getUserInfoByUserId(String userId);

    /**
     * 获取全部用户信息
     * @return
     */
    Page<UserAccess> getAllUserInfo(Pageable pageable, String keyword);
}
